package com.tuanzi.loan.web.lazy.family.largeAmount;

import com.tuanzi.loan.business.service.family.LoanLargeAmountVipBindService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.largeamount.LoanLargeAmountBindRequest;
import com.tuanzi.loan.vo.response.family.largeamount.LoanLargeAmountBindResponse;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 11:34 2019/5/22
 * Description:
 */
public class LoanLargeAmountVipBindLazyDateModel extends BaseLazyDataModel<LoanLargeAmountBindRequest, LoanLargeAmountBindResponse> {
    private static final long serialVersionUID = -8735933940530863602L;

    private LoanLargeAmountVipBindService bindService = SpringContextHolder.getBean(LoanLargeAmountVipBindService.class);

    public LoanLargeAmountVipBindLazyDateModel(LoanLargeAmountBindRequest loanLargeAmountBindRequest) {
        super(loanLargeAmountBindRequest);
    }

    @Override
    protected Page<LoanLargeAmountBindResponse> doLoad(PageSearcher<LoanLargeAmountBindRequest> pageSearcher) {
        return bindService.list(pageSearcher);
    }
}
